GBML manual / Constants

TILE_SOLID

Blocks both a body and a projectile - an ordinary wall.

Syntax

TILE_SOLID: constant

Description

The tile class that blocks both a body and a projectile - an ordinary wall. tile_solid and tile_blocks_projectile both answer true for it; it is the only class either of them ever agrees on.

Example

var against_a_wall = tile_class(x + hsp, y) == TILE_SOLID;

True only when the tile just ahead is an actual wall - a TILE_LOW_COVER tile in the same spot would still stop the walker's own body (tile_solid reports true for that too) but would not count as "a wall" here.

See also: tile_classTILE_PASSTILE_LOW_COVER